package com.mgy.db.sharding.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * 被此注解标准的类都被MapperAspect拦截
 *
 * @author mgy
 * @date 2019.09.03
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MybatisMapper {
    /**
     * 指定表名
     */
    @AliasFor(attribute = "table")
    String value() default "";

    /**
     * 指定表名
     */
    @AliasFor(attribute = "value")
    String table() default "";
}
